<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>8.多层对象的解构操作</title>
</head>
<body>
  <script>
    const hd = {
        name: '后盾人',
        lessons: {
          title: 'javascript'
        }
      }
      const { name, lessons: { title } } = hd;
      console.log(name, title); //后盾人 JS
  </script>
</body>
</html>